Gettings the `which application` output in Bash
Posted
by Prudnikov
on Server Fault
See other posts from Server Fault
or by Prudnikov
Published on 2010-03-12T20:04:35Z
Indexed on
2010/03/12
20:08 UTC
Read the original article
Hit count: 355
Here is my original question at StackOverflow.com
This is the script I wrote
#!/usr/bin/env bash
GP=`/usr/bin/which git`
PWD=`pwd`
echo "PATH IS: ${GP}"
echo "PWD IS: ${PWD}"
and output is
PATH IS:
PWD IS: /Users/user/tmp
So the question is how to get which git
output? I'm running it on Mac OS X 10.6.2.
© Server Fault or respective owner